package biz.obake.team.touchprotector.features.tasker;

import android.content.ComponentName;
import android.os.Bundle;
import c.c.b.a.a.b.a;

public class TaskerFireReceiver extends a {
    public static void e(boolean z) {
        int i = z ? 1 : 2;
        biz.obake.team.android.a a2 = biz.obake.team.android.a.a();
        a2.getPackageManager().setComponentEnabledSetting(new ComponentName(a2, TaskerFireReceiver.class), i, 1);
    }

    /* access modifiers changed from: protected */
    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* JADX WARNING: Code restructure failed: missing block: B:14:0x004a, code lost:
        if (r14.equals("lock.lock") != false) goto L_0x004e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:57:0x00c5, code lost:
        if (r13.equals("Locked") != false) goto L_0x00c9;
     */
    /* JADX WARNING: Removed duplicated region for block: B:60:0x00cb A[ADDED_TO_REGION] */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public void b(android.content.Context r13, android.os.Bundle r14) {
        /*
            r12 = this;
            java.lang.String r13 = "TPService.State"
            java.lang.String r0 = biz.obake.team.touchprotector.g.c.c(r13)
            java.lang.String r1 = "Stopped"
            boolean r0 = r1.equals(r0)
            biz.obake.team.touchprotector.features.tasker.a r2 = new biz.obake.team.touchprotector.features.tasker.a
            r2.<init>((android.os.Bundle) r14)
            java.lang.String r14 = r2.a()
            java.lang.String r2 = "app.quit"
            java.lang.String r3 = "lock.unlock"
            java.lang.String r4 = "lock.toggle"
            java.lang.String r5 = "lock.lock"
            r6 = 0
            r7 = 3
            r8 = -1
            java.lang.String r9 = "Tasker"
            r10 = 2
            r11 = 1
            if (r0 == 0) goto L_0x0059
            int r13 = r14.hashCode()
            switch(r13) {
                case -975455218: goto L_0x0046;
                case -880441993: goto L_0x003e;
                case -852579993: goto L_0x0036;
                case 1122504188: goto L_0x002e;
                default: goto L_0x002d;
            }
        L_0x002d:
            goto L_0x004d
        L_0x002e:
            boolean r13 = r14.equals(r2)
            if (r13 == 0) goto L_0x004d
            r6 = 3
            goto L_0x004e
        L_0x0036:
            boolean r13 = r14.equals(r3)
            if (r13 == 0) goto L_0x004d
            r6 = 1
            goto L_0x004e
        L_0x003e:
            boolean r13 = r14.equals(r4)
            if (r13 == 0) goto L_0x004d
            r6 = 2
            goto L_0x004e
        L_0x0046:
            boolean r13 = r14.equals(r5)
            if (r13 == 0) goto L_0x004d
            goto L_0x004e
        L_0x004d:
            r6 = -1
        L_0x004e:
            if (r6 == 0) goto L_0x0055
            if (r6 == r11) goto L_0x0055
            if (r6 == r10) goto L_0x0055
            return
        L_0x0055:
            biz.obake.team.touchprotector.tpservice.TPService.n(r9)
            return
        L_0x0059:
            int r0 = r14.hashCode()
            switch(r0) {
                case -975455218: goto L_0x0079;
                case -880441993: goto L_0x0071;
                case -852579993: goto L_0x0069;
                case 1122504188: goto L_0x0061;
                default: goto L_0x0060;
            }
        L_0x0060:
            goto L_0x0081
        L_0x0061:
            boolean r14 = r14.equals(r2)
            if (r14 == 0) goto L_0x0081
            r14 = 3
            goto L_0x0082
        L_0x0069:
            boolean r14 = r14.equals(r3)
            if (r14 == 0) goto L_0x0081
            r14 = 1
            goto L_0x0082
        L_0x0071:
            boolean r14 = r14.equals(r4)
            if (r14 == 0) goto L_0x0081
            r14 = 2
            goto L_0x0082
        L_0x0079:
            boolean r14 = r14.equals(r5)
            if (r14 == 0) goto L_0x0081
            r14 = 0
            goto L_0x0082
        L_0x0081:
            r14 = -1
        L_0x0082:
            java.lang.String r0 = "Lock"
            if (r14 == 0) goto L_0x00d4
            java.lang.String r2 = "Unlock"
            if (r14 == r11) goto L_0x00d0
            if (r14 == r10) goto L_0x0095
            if (r14 == r7) goto L_0x008f
            goto L_0x00d7
        L_0x008f:
            java.lang.String r13 = "Stop"
            biz.obake.team.touchprotector.tpservice.TPService.k(r13, r9)
            goto L_0x00d7
        L_0x0095:
            java.lang.String r13 = biz.obake.team.touchprotector.g.c.c(r13)
            int r14 = r13.hashCode()
            r3 = -2013585622(0xffffffff87fb1f2a, float:-3.77846E-34)
            if (r14 == r3) goto L_0x00bf
            r3 = -219666003(0xfffffffff2e829ad, float:-9.196916E30)
            if (r14 == r3) goto L_0x00b7
            r1 = -146305277(0xfffffffff7478f03, float:-4.04753E33)
            if (r14 == r1) goto L_0x00ad
            goto L_0x00c8
        L_0x00ad:
            java.lang.String r14 = "Unlocked"
            boolean r13 = r13.equals(r14)
            if (r13 == 0) goto L_0x00c8
            r6 = 1
            goto L_0x00c9
        L_0x00b7:
            boolean r13 = r13.equals(r1)
            if (r13 == 0) goto L_0x00c8
            r6 = 2
            goto L_0x00c9
        L_0x00bf:
            java.lang.String r14 = "Locked"
            boolean r13 = r13.equals(r14)
            if (r13 == 0) goto L_0x00c8
            goto L_0x00c9
        L_0x00c8:
            r6 = -1
        L_0x00c9:
            if (r6 == 0) goto L_0x00d0
            if (r6 == r11) goto L_0x00d4
            if (r6 == r10) goto L_0x00d4
            goto L_0x00d7
        L_0x00d0:
            biz.obake.team.touchprotector.tpservice.TPService.k(r2, r9)
            goto L_0x00d7
        L_0x00d4:
            biz.obake.team.touchprotector.tpservice.TPService.k(r0, r9)
        L_0x00d7:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: biz.obake.team.touchprotector.features.tasker.TaskerFireReceiver.b(android.content.Context, android.os.Bundle):void");
    }

    /* access modifiers changed from: protected */
    public boolean c() {
        return false;
    }

    /* access modifiers changed from: protected */
    public boolean d(Bundle bundle) {
        return new a(bundle).d();
    }
}
